package com.neuedu.controller.check;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.RestBean;
import com.neuedu.service.check.CheckApplyService;
import com.neuedu.service.physician.PhysicianPatientService;

/**
 * 检查管理：检查申请
 */
@RestController
public class CheckApplyController {
//	@Autowired
	private CheckApplyService checkApplyService;

	@RequestMapping("getFinishCheckCount")
	public Integer getFinishCheckCount() {
		return checkApplyService.getFinishCheckCount();
	}

	// 统计检查排队人数
	@RequestMapping("getWaitCheckCount")
	public Integer getWaitCheckCount() {
		return checkApplyService.getWaitCheckCount();
	}

	@RequestMapping("getWaitCheck")
	public RestBean getWaitCheck(String caseNumber, String realName, Integer nowPageNumber, Integer pageSize) {
		return checkApplyService.getWaitCheck(caseNumber, realName, nowPageNumber, pageSize);
	}
}
